package cn.tedu.autoshow.website.mapper;

import cn.tedu.autoshow.website.pojo.entity.TicketList;
import cn.tedu.autoshow.website.pojo.vo.TicketListListItemVO;
import cn.tedu.autoshow.website.pojo.vo.TicketListStandardVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
import java.util.List;

@Repository
public interface TicketListMapper extends BaseMapper<TicketList> {
    int insertBatch(TicketList[] ticketListArray);

    int deleteByOrderId(Long orderId);

    TicketListStandardVO getStandardById(Long id);

    List<TicketListListItemVO> list();

    List<TicketListListItemVO> listByOrderId(Long orderId);

    List<TicketListListItemVO> listByPatStatus(Integer payStatus);

    List<TicketListListItemVO> listByOrderIdAndPayStatus(Long orderId, Integer payStatus);
}
